angular.module('exchange').controller('exchangeDetailCtrl', ['$scope', '$uibModalInstance', '$http', function ($scope, $uibModalInstance, $http) {
    $scope.exchange = {
        code: ''
    };

    $scope.ok = function () {
        $http.get(ctx + '/prize/exchange?code=' + $scope.exchange.code).then(function (resp) {
            // $uibModalInstance.close();
        });
    };

    $scope.cancel = function () {
        $uibModalInstance.dismiss('cancel');
    };
}]);